package com.sora.basic.util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AjaxResult {

    private Boolean success = true;
    private String msg = "操作成功";
    private Object obj;

    public AjaxResult(Boolean success, String msg) {
        this.success = success;
        this.msg = msg;
    }

    public AjaxResult(Boolean success, Object obj) {
        this.success = success;
        this.obj = obj;
    }
}
